package lumis.service.wsrp.consumer;

import javax.xml.ws.Holder;

import lumis.portal.PortalException;

import com.sun.portal.wsrp.common.stubs.v2.RegistrationContext;

/**
 * Base helper for remote portlet version.
 *
 * @version $Revision: 13092 $ $Date: 2011-05-28 18:19:06 -0300 (Sat, 28 May 2011) $
 * @since 6.0.0
 */
public class RemotePortletHelper
{
	protected String portletHandle;
	protected RegistrationContext registrationContext;
	
	RemotePortletHelper(String portletHandle, RegistrationContext registrationContext)
	{
		this.portletHandle = portletHandle;
		this.registrationContext = registrationContext;
	}
	
	RegistrationContext getRegistrationContextV2() throws PortalException
	{
		return this.registrationContext;
	}
	
	Holder<String> getEmptyPortletHandleHolder()
	{
		Holder<String> portletHandleHolder = new Holder<String>();
	    return portletHandleHolder;
	}
	
	Holder<byte[]> getEmptyPortletStateHolder()
	{
		Holder<byte[]> portletStateHolder = new Holder<byte[]>();			
		return portletStateHolder;
	}
}